﻿using System;
using System.Text;

namespace BSDS.Core.Model.Services.Jobs.Core
{
    public abstract class Job
    {
        public abstract string JobTypeName { get; }

        public string Id { get; set; }
        public DateTime SubmissionDate { get; set; }
        public int RecordsNumber { get; set; }
        public string Command { get; set; }

        public override string ToString()
        {
            var builder = new StringBuilder();

            builder.Append("Job ID: " + Id).Append(Environment.NewLine)
                   .Append("Date Submitted: " + SubmissionDate).Append(Environment.NewLine)
                   .Append("Job Type: " + JobTypeName).Append(Environment.NewLine);

            return builder.ToString();
        }
    }
}